package edu.ucdavis.gwt.gis.client.toolbar.menu;

import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.SimplePanel;

public class PopupMenu extends PopupPanel {
	
	private SimplePanel outerPanel = new SimplePanel();
	private FlowPanel panel = new FlowPanel();
	
	public PopupMenu(String title) {
		setStyleName("toolbarPopupMenu");
		outerPanel.add(panel);
		setWidget(outerPanel);
		setAutoHideEnabled(true);
	}

	
	public void addMenu(ToolbarMenu menu) {
		panel.add(menu);
	}
	
}
